#include <stdio.h>
#include <stdlib.h>
int main()
{
    double f,c;
    scanf("%lf",&f);
    c=(f-32)*5/9;
    printf("%.2f\n",c);
    return 0;
}
